const Controller = require('egg').Controller

class TeacherController extends Controller {
  async updateTeacher() {
    const { ctx } = this
    console.log(ctx.request.body.categoryId)
    const res = await ctx.service.crawler.teacher.index(ctx.request.body.categoryId)
    if (res.num >= 0) {
      return ctx.renderBack(res, '1', '正在爬取教师信息')
    }
  }
}

module.exports = TeacherController
